/* ========================================= */
/* ============ GLOBAL VARIABLES =========== */
/* ========================================= */
:root {
  --total-items: 9; /* عدد صور الشركاء في السكرول */
  --anim-speed: 30s; /* سرعة السكرول */
  --main-bg-light: #d8d8da;
  --main-bg-dark: #1a1a2e;
}

/* ========================================= */
/* ============== BASIC RESET ============== */
/* ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Cairo", "Tajawal", Arial, sans-serif;
  background-color: var(--main-bg-light);
  overflow-x: hidden;
  min-height: 50%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.cairo-uniquifier {
  font-family: "Cairo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

/* ========================================= */
/* ================ NAVBAR ================= */
/* ========================================= */
.outline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.logo {
  width: 60px;
  border-radius: 100%;
  margin-right: 90px;
  margin-left: 90px;
  transition: 0.3s;
}

.logo:hover {
  transform: scale(1.3);
}

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  background-color: #fff;
  color: #fff;
  padding: 10px 0;
  z-index: 1000;
}

.nav {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 20px;
}

/* Nav Links */
.nav-link {
  position: relative;
  text-decoration: none;
  color: #000;
  padding: 10px 15px;
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #000;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  min-width: 140px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  z-index: 10000;
  padding: 5px 0;
  text-align: center;
}

.lang-dropdown:hover .lang-menu {
  display: block;
  animation: fadeIn 0.3s;
}

.lang-option {
  padding: 10px;
  color: black;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.lang-option:hover {
  background-color: #f1f1f1;
  color: #b5a412;
}

body.dark-mode .lang-option:hover {
  background-color: #3d3d52;
  color: #ffcc00;
}

.flag-img {
  width: 20px;
  height: auto;
  vertical-align: middle;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Text Headers (home جزء الصورة) */
.about--header {
    margin-top: 100px; 
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px 0; 
}

.about--header img {
    width: 80%;           
    height: auto;  
    max-width: 700px;        /* يحافظ على نسبة العرض للارتفاع */
    max-height: 300px;     /* أقصى ارتفاع للصورة */
    border-radius: 30px;  
    object-fit:fill;  
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: scale(1.08) translateY(-10px);
    filter: brightness(1.05);
}

/* Theme Button */
#theme-btn {
  background-color: transparent !important;
  border: none !important;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  cursor: pointer;
}

#theme-btn:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

.theme-toggle-btn .icon {
  position: absolute;
  font-size: 1.5rem;
  transition: all 0.5s ease-in-out;
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

/* ========================================= */
/* ===== HOME PAGE SECTIONS (FROM #1) ====== */
/* ========================================= */

/* Text Headers */
#title {
  margin-top: 70px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #1a3d6d;
  text-align: center;
}

body.dark-mode #title {
  color: #ffffff;
}

#description {
  margin-top: 15px;
  font-weight: 400;
  font-size: 25px;
  text-align: center;
  line-height: 1.6;
  color: #1a3d6d;
  margin-bottom: 7%;
}

body.dark-mode #description {
  color: #ddd;
}

#who_We_Are {
  font-family: "Cairo", sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.6;
  margin-right: 20%;
  padding: 10px;
  margin-bottom: 10px;
}

/* Activity Hero */
.activity-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 120px 8% 60px;
  gap: 40px;
}

.activity-text {
  flex: 1;
}

.activity-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.activity-text p {
  font-size: 18px;
  line-height: 1.8;
}

.activity-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.activity-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* About Cards (White) */
.about-container {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  font-family: "Cairo", sans-serif;
  color: #1a3d6d;
}

.about-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* About cards – Dark Mode فقط */
body.dark-mode .about-card {
  background: #1a3d6d;
}

.about-card h2 {
  font-size: 2rem;
  color: #1a3d6d;
  margin-bottom: 10px;
}

.about-card h3 {
  font-size: 1.4rem;
  color: #1a3d6d;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
}

.about-card.slogan {
  grid-column: 1 / -1;
  text-align: center;
  background: #f5f7fa;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a3d6d;
}

/* Neon Cards (Dark Theme) */
.neon-card,
.neon-card2 {
  width: 400px;
  height: 320px;
  max-width: 90%;
  background: rgba(15, 15, 30, 0.7);
  border: 2px solid #0ff;
  border-radius: 12px;
  margin: 10%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  position: relative;
}

.neon-card2 {
  margin-right: 65%;
}

.neon-card:hover,
.neon-card2:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 10px #0ff,
    0 0 20px #0ff,
    0 0 30px rgba(0, 255, 255, 0.3);
}

.neon-card img,
.neon-card2 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.neon-card-content,
.neon-card-content2 {
  padding: 16px;
  color: white;
}

.neon-card h3,
.neon-card2 h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
}

.neon-card p,
.neon-card2 p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Video Section */
.video-section {
  width: 100%;
  height: 60%;
  margin-top: 5%;
  /* max-height: fit-content; */
  min-height: 50%;
  padding: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper {
  width: 100%;
  max-width: 2000px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.989);
  height: 650px;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ========================================= */
/* === PARTNERS HERO & SECTIONS (FROM #2) == */
/* ========================================= */

.partners-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  padding-top: 120px;
  min-height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 9, 133, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: 0.3s;
}

.hero-text h1 {
  font-size: 2.2rem;
  color: #150757;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.hero-cards {
  flex: 1;
  display: flex;
  height: auto;
  min-height: 100%;
  gap: 15px;
  min-width: 300px;
}

.hero-cards .card {
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 0;
  background: #000;
}

.hero-cards .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: 0.5s;
}

/* Cards Interaction */
.hero-cards:hover .card:not(:hover) {
  flex: 0.5;
  opacity: 0.5;
}

.hero-cards .card:hover {
  flex: 4;
  opacity: 1;
}

.hero-cards .card:hover img {
  opacity: 1;
}

/* Wavy Divider */
.custom-shape-divider-bottom {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -50px;
  margin-bottom: 50px;
  z-index: 1;
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
  transform: rotate(180deg);
}

/* Fill color matches body background */
.custom-shape-divider-bottom .shape-fill {
  fill: var(--main-bg-light);
}

/* ========================================= */
/* =========== INFINITE SCROLL ============= */
/* ========================================= */
.uni-section {
  margin: 60px 0;
  overflow: hidden;
}

.uni-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #150757;
  position: relative;
}

.scorlling {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.item {
  width: 250px;
  height: 100%;
  position: absolute;
  border-radius: 10px;
  background-color: #ddd;
  left: max(calc(250px * var(--total-items)), 100%);
  animation-name: scrollLeft;
  animation-duration: var(--anim-speed);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* Calculation for staggered delay */
  animation-delay: calc(
    var(--anim-speed) / var(--total-items) * (var(--total-items) - var(--i)) *
      -1
  );
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
}

.item:hover img {
  transform: scale(1.1);
}

@keyframes scrollLeft {
  to {
    left: -250px;
  }
}

/* =============clients edits's_moodys edition==================== */

.uni-sectionn1 {
  margin: 60px 0;
  overflow: hidden;
}

.uni-titlee1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #150757;
  position: relative;
}

body.dark-mode .uni-titlee1 {
  color: #ffffff;
}
.scorllingg1 {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.itemm1 {
  width: 250px;
  height: 100%;
  position: absolute;
  border-radius: 10px;
  background: transparent;
  left: max(calc(250px * var(--total-items)), 100%);
  animation-name: scrollLeft;
  animation-duration: var(--anim-speed);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* Calculation for staggered delay */
  animation-delay: calc(
    var(--anim-speed) / var(--total-items) * (var(--total-items) - var(--i)) *
      -1
  );
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
}

.item:hover img {
  transform: scale(1.1);
}
.item:hover img {
  transform: scale(1.1);
}

@keyframes scrollLeft {
  to {
    left: -250px;
  }
}

/* ================================================================ */
/* ========================================= */
/* ============== FOOTER =================== */
/* ========================================= */
.footer {
  width: 100%;
  margin: 0;
  padding: 60px 20px;
  border-radius: 0;
  background: linear-gradient(135deg, #1f2a4c, #24345f);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.footer-column h3,
.follow-us-section h3 {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.footer-column ul li a {
  font-family: "Cairo", sans-serif;
  font-weight: 400;
  font-size: 15px;
}

.ldi-footer {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

.ldi-logo img {
  width: 120px;
  height: auto;
  border-radius: 10px;
  position: relative;
  top: -20px;
  margin-left: auto;
  margin-right: 0;
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#contact-us {
  font-weight: bold;
  font-size: 1.1rem;
}

.contact-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 12px;
}

.important-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.important-links p {
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0;
  color: white;
  font-family: "Cairo", sans-serif;
}

.important-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.important-links ul li {
  margin: 5px 0;
}

.important-links ul li a {
  color: white;
  text-decoration: none;
  transition: 0.2s;
}

.important-links ul li a:hover {
  color: #ffcc00;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #d1d5ff;
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

/* Social Media Circles */
#social-icons-container {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.social-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

#social-icons-container a img {
  width: 20px;
  height: 20px;
}

.social-circle:hover {
  transform: translateY(-3px) scale(1.08);
  background-color: rgba(255, 255, 255, 0.3);
}

/* ========================================= */
/* =========== DARK MODE STYLES ============ */
/* ========================================= */

body.dark-mode {
  background-color: var(--main-bg-dark);
  color: #e0e0e0;
}

body.dark-mode .topnav {
  background-color: #16213e;
}

body.dark-mode .nav-link {
  color: #fff;
}

body.dark-mode .nav-link:hover::after,
body.dark-mode .nav-link.active::after {
  background-color: #fff;
}

body.dark-mode .lang-menu {
  background-color: #2c2c3e;
  color: white;
}

body.dark-mode .lang-option {
  color: white;
}

body.dark-mode .lang-option:hover {
  background-color: #3d3d52;
}

/* Dark Mode Icons Toggle */
body.dark-mode .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
body.dark-mode .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon_color {
  color: white;
}

/* Home Page Dark Mode */
body.dark-mode .about-card {
  background: rgba(22, 33, 62, 0.8);
  color: #ddd;
}

body.dark-mode .about-card p,
body.dark-mode .about-card h2 {
  color: #ddd;
}
body.dark-mode .about-card h3 {
  color: #b8860b;
}

body.dark-mode .about-card.slogan {
  background: rgba(22, 33, 62, 0.8);
}

/* Partners Hero Dark Mode */
body.dark-mode .partners-hero {
  background: #151f28;
}

body.dark-mode .hero-text {
  background: rgba(22, 33, 62, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .hero-text h1 {
  color: #fff;
}
body.dark-mode .hero-text p {
  color: #ddd;
}

body.dark-mode .custom-shape-divider-bottom .shape-fill {
  fill: var(--main-bg-dark);
}

body.dark-mode .uni-title {
  color: #fff;
}

/* ========================================= */
/* =========== MEDIA QUERIES =============== */
/* ========================================= */
@media (max-width: 900px) {
  .partners-hero {
    padding-top: 100px;
  }
  .hero-container {
    flex-direction: column;
  }
  .hero-cards {
    width: 100%;
    height: 300px;
  }
}

/* ==================================== */
/* ================editing scroll bar in home=================== */

Variabel global untuk kustomisasi :root {
  --total-items: 9; /* Jumlah total item */
  --animation-duration: 30s; /* Durasi animasi */
}

/* Container utama untuk scrolling */
.scorlling {
  width: 100%;
  max-width: 1536px;
  position: relative;
  height: 150px; /* Tinggi container */
  overflow: hidden;
  margin-bottom: 3.5%;

  /* Masking untuk memberikan efek fade di sisi kiri dan kanan */
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

img {
  width: 100%;
  height: 100%;
}

/* Animasi untuk menggeser elemen ke kiri */
@keyframes scrollleft {
  to {
    left: -200px; /* Elemen akan bergerak ke kiri sejauh 200px */
  }
}

/* Gaya dasar untuk setiap item */
.item {
  width: 250px; /* Lebar setiap item - jika diubah jangan lupa atur left mask */
  height: 100%; /* Tinggi mengikuti container */
  background-color: #bababa; /* Warna latar belakang */
  border-radius: 6px; /* Membuat sudut melengkung */
  position: absolute; /* Posisi absolut untuk animasi */
  overflow: hidden; /* Sembunyikan konten yang melebihi lebar */

  /* Posisi awal elemen di luar layar */
  left: max(calc(250px * var(--total-items)), 100%);

  /* Pengaturan animasi */
  animation-name: scrollleft; /* Nama animasi */
  animation-duration: var(--animation-duration); /* Durasi animasi */
  animation-timing-function: linear; /* Kecepatan animasi konstan */
  animation-iteration-count: infinite; /* Animasi berjalan terus-menerus */
}

/* Pengaturan delay animasi untuk setiap item */
.item1 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 1) *
      -1
  );
}
.item2 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 2) *
      -1
  );
}
.item3 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 3) *
      -1
  );
}
.item4 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 4) *
      -1
  );
}
.item5 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 5) *
      -1
  );
}
.item6 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 6) *
      -1
  );
}
.item7 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 7) *
      -1
  );
}
.item8 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 8) *
      -1
  );
}
.item9 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 9) *
      -1
  );
}

/* ============================================================ */
/* activties edits */
/* Container to push everything to the right */
/* ===================== Events Grid Container =========================== */

/* This container manages the 2x3 layout */
.events-grid-container {
  display: grid;
  /* This creates 2 columns of equal size with a gap of 30px */
  grid-template-columns: repeat(2, 1fr);
  gap: 30px; /* Space between cards */
  padding: 120px 8% 60px; /* Overall padding for the section */
  width: 100%;
  /* Centers the entire grid container on the page */
  margin: 0 auto;
  max-width: 1200px;
}

/* ===================== Individual Card Styling =========================== */
.card-event {
  padding: 15px;
  /* Width is now controlled by the grid-template-columns (1fr) */
  background-color: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-family: "Cairo", sans-serif;
  transition: transform 0.3s ease;
}
.events-grid-container {
  display: grid;
  /* This line creates 2 columns (two cards beside each other) */
  grid-template-columns: repeat(2, 1fr);
  gap: 30px; /* This adds space between the cards */
  padding: 120px 8% 60px;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px; /* Optional: keeps the grid from getting too wide on large screens */
}

/* ... the rest of the .card-event styling ... */

.card-event:hover {
  transform: translateY(-5px);
}

.image-box {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #eee;
}

.image-box img {
  /* Changed from #slider-image to target all images */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag {
  position: absolute;
  top: 10px;
  right: 10px; /* Adjusted for RTL */
  background-color: rgba(179, 27, 27, 0.85); /* Institute Red */
  padding: 4px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
}

/* ========================================= */
/* ========= EVENTS CARD STYLING =========== */
/* ========================================= */

.info {
  margin-top: 15px;
  text-align: right; /* RTL alignment */
}

.date {
  display: block;
  font-size: 0.8rem;
  color: #777; /* Light Mode Color */
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.card-event .title {
  display: block;
  font-size: 1.2rem;
  color: #1a1a2e; /* Light Mode Color */
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.card-event .description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555; /* Light Mode Color */
  transition: color 0.3s ease;
}

/* ========================================= */
/* ========= DARK MODE SUPPORT ============= */
/* ========================================= */

/* Background Color */
body.dark-mode .card-event {
  background-color: rgba(22, 33, 62, 0.8); /* طلبك: لون الخلفية */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05); /* حدود خفيفة للشياكة */
}

/* Title Color */
body.dark-mode .card-event .title {
  color: #ffffff; /* طلبك: لون العنوان أبيض */
}

/* Date Color */
body.dark-mode .date {
  color: #ffffff; /* طلبك: لون التاريخ أبيض */
  opacity: 0.8; /* شفافية بسيطة عشان يختلف عن العنوان */
}

/* Description Color */
body.dark-mode .card-event .description {
  color: #dddddd; /* طلبك: لون الوصف رمادي فاتح */
}

/* ========================================= */
/* ============ RESPONSIVE ================= */
/* ========================================= */

@media (max-width: 768px) {
  .events-grid-container {
    grid-template-columns: 1fr; /* Stack cards vertically */
    padding: 100px 5% 40px;
  }
}

/* Variabel global untuk kustomisasi */
:root {
  --total-items: 9; /* Jumlah total item */
  --animation-duration: 30s; /* Durasi animasi */
}

/* Container utama untuk scrolling */
.scorlling {
  width: 100%;
  max-width: 1536px;
  position: relative;
  height: 150px; /* Tinggi container */
  overflow: hidden;

  /* Masking untuk memberikan efek fade di sisi kiri dan kanan */
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

img {
  width: 100%;
  height: 100%;
}

/* Animasi untuk menggeser elemen ke kiri */
@keyframes scrollleft {
  to {
    left: -200px; /* Elemen akan bergerak ke kiri sejauh 200px */
  }
}

/* Gaya dasar untuk setiap item */
.item {
  width: 250px; /* Lebar setiap item - jika diubah jangan lupa atur left mask */
  height: 100%; /* Tinggi mengikuti container */
  background-color: #bababa; /* Warna latar belakang */
  border-radius: 6px; /* Membuat sudut melengkung */
  position: absolute; /* Posisi absolut untuk animasi */
  overflow: hidden; /* Sembunyikan konten yang melebihi lebar */

  /* Posisi awal elemen di luar layar */
  left: max(calc(250px * var(--total-items)), 100%);

  /* Pengaturan animasi */
  animation-name: scrollleft; /* Nama animasi */
  animation-duration: var(--animation-duration); /* Durasi animasi */
  animation-timing-function: linear; /* Kecepatan animasi konstan */
  animation-iteration-count: infinite; /* Animasi berjalan terus-menerus */
}

/* Pengaturan delay animasi untuk setiap item */
.item1 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 1) *
      -1
  );
}
.item2 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 2) *
      -1
  );
}
.item3 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 3) *
      -1
  );
}
.item4 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 4) *
      -1
  );
}
.item5 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 5) *
      -1
  );
}
.item6 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 6) *
      -1
  );
}
.item7 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 7) *
      -1
  );
}
.item8 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 8) *
      -1
  );
}
.item9 {
  animation-delay: calc(
    var(--animation-duration) / var(--total-items) * (var(--total-items) - 9) *
      -1
  );
}
/* ===================================== */

/* تنسيق الحاوية */
.dropdown-container {
  position: relative;
  display: inline-block;
}

/* تنسيق القائمة نفسها */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0; /* يبدأ من اليمين عشان العربي */
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

/* في حالة اللغة الإنجليزية (LTR) نخلي القائمة تفتح من الشمال */
html[dir="ltr"] .dropdown-menu {
  right: auto;
  left: 0;
}

/* إظهار القائمة عند الهوفر */
.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* تنسيق اللينكات (النقطة 1: الكلام في النص) */
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center; /* توسيط الكلام */
}

/* (النقطة 2: هوفر أصفر غامق) */
.dropdown-menu li a:hover {
  background-color: #f9f9f9;
  color: #b8860b; /* لون أصفر غامق (Dark Goldenrod) */
}

/* (النقطة 3: تصغير السهم وتنسيقه) */
.nav-link i {
  font-size: 0.75em; /* تصغير حجم الأيقونة */
  margin-right: 5px; /* مسافة بينها وبين الكلام */
  vertical-align: middle; /* محاذاة مع النص */
  transition: transform 0.3s;
}

/* لف السهم لما القائمة تفتح (حركة روشة إضافية) */
.dropdown-container:hover .nav-link i {
  transform: rotate(180deg);
}

/* ========================================= */
/* ========= DARK MODE FOR DROPDOWN ======== */
/* ========================================= */

/* 1. تغيير لون خلفية القائمة للغامق */
body.dark-mode .dropdown-menu {
  background-color: #2c2c3e; /* نفس درجة اللون الغامق في باقي الموقع */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); /* ضل أتقل شوية عشان يبان */
  border: 1px solid rgba(255, 255, 255, 0.05); /* حدود خفيفة جداً */
}

/* 2. تغيير لون الكلام للأبيض */
body.dark-mode .dropdown-menu li a {
  color: #e0e0e0;
}

/* 3. تغيير لون الهوفر في الدارك مود */
body.dark-mode .dropdown-menu li a:hover {
  background-color: #3d3d52; /* لون أفتح سيكا من الخلفية عند الهوفر */
  color: #ffcc00; /* الأصفر نخليه أفتح شوية (Gold) عشان ينور في الضلمة */
}

/* history edits */
:root {
  --primary: #0d4c8b;
  --accent: #07274e;
  --text: #060521;
  --white: #ffffff;
  --bg-light: #fdfdfd;
}

body {
  font-family: "Cairo", sans-serif;
  margin: 0;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg-light);
  text-align: justify;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header added by farah */
.main-header {
  background:
    linear-gradient(rgba(18, 38, 58, 0.4), rgba(18, 38, 58, 0.4)),
    url("https://scontent.fcai20-1.fna.fbcdn.net/v/t39.30808-6/559097483_1226107732879369_8112914216413200771_n.jpg?_nc_cat=110&ccb=1-7&_nc_sid=833d8c&_nc_ohc=u8VIe5z66UsQ7kNvwHVUYWI&_nc_oc=Adm3KYTDgiRuAzNrNC1DKvGxjLQrrdPVqIsdm7B3zgCdTmUQVn9DvbVF1k6JicK_6os&_nc_zt=23&_nc_ht=scontent.fcai20-1.fna&_nc_gid=-yWPmj9Us5Lsa4Wk60DYog&oh=00_AftkLWaTdoiqsDcdlvH72Hut0fa3gaUXLVYUXR6bvxVzSQ&oe=69927626")
      center/cover;
  height: 700px;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
  margin-bottom: 60px;
}

.header-content h1 {
  font-size: 3.5rem;
  margin: 10px 0;
  font-family: "Amiri", serif;
}

.separator {
  width: 1000px;
  height: 4px;
  background: var(--accent);
  margin: 20px auto;
  justify-content: center;
  justify-content: center;
  color: #b8860b;
  background-color: #b8860b;
}

/* Info Blocks */
.info-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
}

.info-block.reverse {
  flex-direction: row-reverse;
}

.text-side {
  flex: 2;
}

.section-title {
  color: var(--primary);
  font-size: 2rem;
  border-right: 5px solid var(--accent);
  padding-right: 15px;
  margin-bottom: 25px;
}

.stats-side {
  flex: 1;
  background: var(--primary);
  color: var(--white);
  padding: 10px;
  border-radius: 20px;
  text-align: center;
  transform: rotate(3deg);
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

.accent-quote {
  font-family: "Amiri", serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #0d4c8b;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 30px 0;
}

body.dark-mode .accent-quote {
  color: #bbb;
  border-left-color: #b8860b; /* لون أصفر غامق في الدارك مود */
}

/* History Grid */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.grid-item {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(19, 6, 6, 0.05);
  transition: 0.3s;
}
.history-grid .grid-item h3 {
  position: relative;
  z-index: 1;
  color: #ffffff; /* تغيير اللون للأبيض */
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: color 0.3s ease; /* حركة ناعمة عند التغيير */
}
body.dark-mode .grid-item {
  background: rgba(22, 33, 62, 0.8);
  color: #bbbaba;
  box-shadow: 0 10px 30px rgba(19, 6, 6, 0.3);
}

.grid-item:hover {
  transform: translateY(-10px);
}

.year {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.5rem;
}

body.dark-mode .year {
  color: #b8860b; /* لون أصفر غامق في الدارك مود */
}

/* Vision Section */
.vision-mission {
  background: #ffffff;
  padding: 60px 40px;
  border-radius: 30px;
  margin-bottom: 80px;
  box-shadow: 0 20px 50px rgba(19, 6, 6, 0.19);
}

body.dark-mode .vision-mission {
  background: rgba(22, 33, 62, 0.8);
  color: #ddd;
  box-shadow: 0 10px 30px rgba(19, 6, 6, 0.3);
}

.vision-mission:hover {
  transform: translateY(-10px);
}

.vision-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

/* Footer-like Location Section */
.location-footer {
  padding: 60px;
  background: var(--primary);
  color: var(--primary);
  border-radius: 30px 30px 0 0;
  text-align: center;
}

/* Animations */
.fade-in {
  opacity: 1;
  transform: translateY(40px);
  transition: all 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .info-block,
  .info-block.reverse {
    flex-direction: column;
  }
  .vision-content {
    grid-template-columns: 1fr;
  }
  .header-content h1 {
    font-size: 2.2rem;
  }
}

/* ========================================= */
/* =========== BOARD SECTION EDITS ========= */
/* ========================================= */

/* 1. الحاوية الرئيسية: تأكدنا إنها واخدة مساحة كافية ومظبوطة في نص الشاشة */
.board-section {
  padding: 100px 20px 60px; /* مساحة عشان الـ Navbar الثابت */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* عنوان القسم بتنسيقك الأصلي */
.section-title.text-center {
  font-size: 2.5rem;
  color: #1a3d6d;
  margin-bottom: 50px;
  position: relative;
  font-family: "Cairo", sans-serif;
}

/* 2. توزيع الهيكل الهرمي (1 ثم 2 ثم 2) */
.board-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px; /* المسافة بين الصفوف */
  width: 100%;
  max-width: 1200px;
}

.board-row {
  display: flex;
  justify-content: center;
  gap: 40px; /* المسافة بين الكروت جنب بعض */
  width: 100%;
  flex-wrap: wrap;
}

/* 3. تأثيرات الكارت (اللمسات النهائية) */
.card {
  position: relative;
  width: 300px;
  height: 220px;
  background-color: #ffffff; /* أبيض صريح في اللايت مود */
  border-radius: 15px; /* حواف أنعم سيكا */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* لمسة تمييز لكارت المدير (أول كارت) */
.board-row:first-child .card {
  border: 2px solid #1a3d6d;
  transform: scale(1.05); /* المدير أكبر سيكا */
}

.card svg {
  width: 60px;
  fill: #1a3d6d; /* لون لوجو المعهد */
  transition: all 0.6s ease;
}

/* 4. حركة الـ Flip (المحتوى الداخلي) */
.card__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 25px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card__content {
  transform: rotateX(0deg);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card__title {
  font-size: 22px;
  color: #f3f7fc;
  font-weight: 800;
  margin-bottom: 80px;
}

.card__description {
  margin-top: 15px;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
}

/* ========================================= */
/* =========== DARK MODE FOR BOARD ========= */
/* ========================================= */

body.dark-mode .card {
  background-color: #24345f;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .card svg {
  fill: #ffcc00; /* الأصفر المعتمد عندك في الدارك مود */
}

body.dark-mode .card__title {
  color: #ffffff;
}

body.dark-mode .card__description {
  color: #ffffff;
}

body.dark-mode .section-title {
  color: #fff;
}

/* Responsive Fix */
@media (max-width: 768px) {
  .board-row {
    gap: 20px;
  }
  .card {
    width: 90%; /* الكروت تملأ الشاشة في الموبايل */
    height: 180px;
  }
  .board-row:first-child .card {
    transform: scale(1);
  }
}
/* ضبط أحجام الكروت الجديدة */
.card {
  position: relative;
  width: 350px; /* كبرنا العرض */
  height: 450px; /* كبرنا الطول عشان الصورة تبان */
  background-color: #333;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* المحتوى يبدأ من تحت */
  transition: all 0.5s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* تمييز كارت المدير */
.director-card {
  width: 400px;
  height: 500px;
  border: 3px solid #1a3d6d;
}

/* تنسيق الصورة الخلفية */
.card__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.card__background img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* عشان الصورة متتمطش */
  transition: transform 0.8s ease;
}

.card:hover .card__background img {
  transform: scale(1.1); /* زووم خفيف عند الهوفر */
}

/* طبقة المحتوى (تأثير الطلوع من تحت لفوق) */
.card__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  transform: translateY(150px); /* المحتوى مستخبي تحت */
  transition: all 0.5s ease;
}

.card:hover .card__content {
  transform: translateY(0); /* يطلع مكانه عند الهوفر */
}

.card__title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 5px;
}

/* الخط الصغير اللي تحت الاسم */
.card__line {
  width: 50px;
  height: 4px;
  background-color: #ffcc00;
  margin-bottom: 15px;
  transition: width 0.5s ease;
}

.card:hover .card__line {
  width: 100%; /* الخط يطول عند الهوفر */
}

.card__description {
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover .card__description {
  opacity: 1;
}

/* دعم الدارك مود */
body.dark-mode .director-card {
  border-color: #ffcc00;
}

/* تنسيقات الهيكل التنظيمي */
.org-chart-container {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-chart-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 50px;
  margin-top: 70px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.org-chart-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: #1a3d6d;
  border-radius: 2px;
  transition: all 1.5s ease-in-out;
}

.org-chart-title.animate::after {
  width: 100%;
  background: #b8860b;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  max-width: 1400px;
  width: 100%;
}

.org-level {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  width: 100%;
  flex-wrap: wrap;
}

/* تنسيق المستوى الثالث خاص لجعل المربعات في الوسط */
.org-level.level-three {
  justify-content: center;
}

.org-level.level-three .sub-level {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.org-box {
  background: linear-gradient(135deg, #1a3d6d 0%, #1a3d6d 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(21, 7, 87, 0.3);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 180px;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.org-box.glow:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 32px rgba(170, 139, 3, 0.822),
    0 0 10px rgba(177, 124, 10, 0.8),
    0 0 20px rgba(233, 190, 1, 0.767),
    0 0 80px rgba(202, 124, 5, 0.4);
  background: linear-gradient(135deg, #1a3d6d 0%, #1a3d6d 100%);
}

.org-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(21, 7, 87, 0.4);
  background: linear-gradient(135deg, #1a3d6d 0%, #1a3d6d 100%);
}

.org-box.primary {
  background: linear-gradient(135deg, #1a3d6d 0%, #1a3d6d 100%);
  font-size: 1.3rem;
  padding: 25px 40px;
  min-width: 220px;
}

.org-box.secondary {
  background: linear-gradient(135deg, #1a3d6d 0%, #1a3d6d 100%);
}

/* خطوط الربط */
.connection-line {
  position: relative;
  background: #b8860b;
  z-index: -1;
}

.vertical-line {
  width: 3px;
  height: 15px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
}

.horizontal-line {
  height: 3px;
  width: 100%;
  top: -20px;
}

/* تنسيق المستويات الفرعية */
.sub-level {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.branch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.branch-line {
  width: 3px;
  height: 15px;
  background: #b8860b;
}

/* تنسيق responsive */
@media (max-width: 768px) {
  .org-chart-title {
    font-size: 1.8rem;
  }

  .org-box {
    min-width: 140px;
    font-size: 0.95rem;
    padding: 15px 20px;
  }

  .org-box.primary {
    font-size: 1.1rem;
    padding: 20px 30px;
    min-width: 180px;
  }

  .org-level {
    gap: 15px;
  }

  .org-level.level-three .sub-level {
    flex-wrap: wrap;
  }
}

/* Dark mode support */
body.dark-mode .org-chart-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .org-chart-title {
  color: #e0e0e0;
}

body.dark-mode .org-box {
  background: linear-gradient(135deg, #0f3460 0%, #16537e 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .org-box:hover {
  background: linear-gradient(135deg, #16537e 0%, #0f3460 100%);
}

body.dark-mode .org-box.primary {
  background: linear-gradient(135deg, #0a2647 0%, #144272 100%);
}

body.dark-mode .connection-line,
body.dark-mode .branch-line {
  background: #c9883d;
}

/* ========================================= */
/* ======= SLOGAN ANIMATION STYLES ========= */
/* ========================================= */

/* تعديل الكارت الأساسي للشعار */
.about-card.slogan {
  grid-column: 1 / -1;
  text-align: center;
  background: #f5f7fa;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a3d6d;
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.dark-mode .about-card.slogan {
  background: rgba(22, 33, 62, 0.8);
}

/* حاوية الأنيميشن الرئيسية */
.slogan-loader {
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  font-size: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 55px;
}

/* النص الثابت قبل الكلمات المتحركة */
#slogan-prefix {
  color: #1a3d6d;
  margin: 0;
  white-space: nowrap;
  size: 200px;
}

body.dark-mode #slogan-prefix {
  color: #ffffff;
}

/* حاوية الكلمات المتحركة */
.slogan-words {
  overflow: hidden;
  position: relative;
  height: 55px;
  padding: 0 10px;
}

/* تأثير التلاشي من أعلى وأسفل */
.slogan-words::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #f5f7fa 5%,
    transparent 25%,
    transparent 75%,
    #f5f7fa 95%
  );
  z-index: 20;
  pointer-events: none;
}

body.dark-mode .slogan-words::after {
  background: linear-gradient(
    to bottom,
    rgba(22, 33, 62, 0.8) 5%,
    transparent 25%,
    transparent 75%,
    rgba(22, 33, 62, 0.8) 95%
  );
}

/* الكلمات الفردية */
.slogan-word {
  display: block;
  height: 100%;
  line-height: 55px;
  color: #b8860b; /* اللون الذهبي الغامق */
  font-weight: 800;
  animation: sloganSpin 10s infinite ease-in-out;
  text-align: center;
}

body.dark-mode .slogan-word {
  color: #b8860b; /* اللون الذهبي الفاتح في الدارك مود */
}

/* أنيميشن الحركة العمودية */
@keyframes sloganSpin {
  0% {
    transform: translateY(0%);
  }
  10% {
    transform: translateY(-100%);
  }
  12% {
    transform: translateY(-100%);
  }
  22% {
    transform: translateY(-200%);
  }
  24% {
    transform: translateY(-200%);
  }
  34% {
    transform: translateY(-300%);
  }
  36% {
    transform: translateY(-300%);
  }
  46% {
    transform: translateY(-400%);
  }
  48% {
    transform: translateY(-400%);
  }
  58% {
    transform: translateY(-500%);
  }
  100% {
    transform: translateY(-500%);
  }
}

/* تصميم متجاوب للموبايل */
@media (max-width: 768px) {
  .slogan-loader {
    font-size: 22px;
    flex-direction: column;
    height: auto;
    gap: 8px;
    text-align: center;
  }

  .slogan-words {
    height: 40px;
  }

  .slogan-word {
    line-height: 40px;
    font-size: 24px;
  }

  .about-card.slogan {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .slogan-loader {
    font-size: 18px;
  }

  .slogan-words {
    height: 35px;
  }

  .slogan-word {
    line-height: 35px;
    font-size: 20px;
  }
}

/* editing tech team webpage */

/* ── LAYOUT ONLY - these 4 classes changed ── */

.cards-containerr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  margin-top: 2%;
  margin-bottom: 5%;
}

.cards-roww {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.cards-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.cards-rowww {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.ENG-YARA-SECTION {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 7%;
}

.Maria-SECTION {
  display: contents;
}

/* ── ALL CARD STYLES BELOW ARE UNCHANGED FROM YOUR ORIGINAL ── */

.cardd {
  width: 280px;
  height: 330px;
  background: none;
  border-radius: 32px;
  padding: 3px;
  position: relative;
  box-shadow: #1a3d6db5 0px 70px 30px -50px;
  transition: all 0.5s ease-in-out;
}

.cardd .maill {
  position: absolute;
  right: 2rem;
  top: 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.cardd .maill svg {
  stroke: #ffffff;
  stroke-width: 3px;
}

.cardd .maill svg:hover {
  stroke: #1a3d6d;
}

.cardd .profile-picc {
  position: absolute;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: 3px;
  left: 3px;
  border-radius: 29px;
  z-index: 1;
  border: 0px solid #1a3d6d;
  overflow: hidden;
  transition:
    all 0.5s ease-in-out 0.2s,
    z-index 0.5s ease-in-out 0.2s;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cardd .profile-picc img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.cardd .profile-picc svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0px 0px;
  transform-origin: 45% 20%;
  transition: all 0.5s ease-in-out 0s;
}

.cardd .bottomm {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: #1a3d6d;
  top: 80%;
  border-radius: 29px;
  z-index: 2;
  box-shadow: rgba(96, 75, 74, 0.1882352941) 0px 5px 5px 0px inset;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

.cardd .bottomm .contentt {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 160px;
}

.cardd .bottomm .contentt .namee {
  display: block;
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
}

.cardd .bottomm .contentt .about-mee {
  display: block;
  font-size: 0.9rem;
  color: white;
  margin-top: 1rem;
}

.cardd .bottomm .bottom-bottomm {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cardd .bottomm .bottom-bottomm .social-links-containerr {
  display: flex;
  gap: 1rem;
}

.cardd .bottomm .bottom-bottomm .social-links-containerr svg {
  height: 20px;
  fill: #ffffff;
  filter: drop-shadow(0 5px 5px rgba(165, 132, 130, 0.1333333333));
  cursor: pointer;
  transition: all 0.3s ease;
}

.cardd .bottomm .bottom-bottomm .social-links-containerr svg:hover {
  fill: yellowgreen;
  transform: scale(1.2);
}
.cardd .bottomm .bottom-bottomm .social-links-containerr a svg[stroke] {
  fill: none !important;
  stroke: #ffffff;
  stroke-width: 2px;
  height: 20px;
}
.cardd .bottomm .bottom-bottomm .social-links-containerr a svg[stroke]:hover {
  stroke: yellowgreen;
  fill: none !important;
}
.cardd .bottomm .bottom-bottomm .buttonn {
  background: #1a3d6d;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 0.6rem;
  padding: 0.4rem 0.6rem;
  box-shadow: rgba(165, 132, 130, 0.1333333333) 0px 5px 5px 0px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cardd .bottomm .bottom-bottomm .buttonn:hover {
  background: #1a3d6d;
  color: white;
}

.cardd:hover {
  border-top-left-radius: 55px;
}

.cardd:hover .bottomm {
  top: 20%;
  border-radius: 80px 29px 29px 29px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.cardd:hover .profile-picc {
  width: 120px;
  height: 120px;
  aspect-ratio: 1;
  top: 10px;
  left: 140px;
  border-radius: 50%;
  z-index: 3;
  border: 7px solid #1a3d6d;
  box-shadow: rgba(96, 75, 74, 0.4) 0px 12px 15px 0px;
  transition:
    all 0.5s ease-in-out,
    z-index 0.5s ease-in-out 0.1s;
}

.cardd:hover .profile-picc:hover {
  transform: scale(1.3);
  border-radius: 0px;
}

.cardd:hover .profile-picc svg {
  transform: scale(2.5);
  transition: all 0.5s ease-in-out 0.5s;
}

.cardd .profile-piccc {
  position: absolute;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: 3px;
  left: 3px;
  border-radius: 29px;
  z-index: 1;
  border: 0px solid #1a3d6d;
  overflow: hidden;
  transition:
    all 0.5s ease-in-out 0.2s,
    z-index 0.5s ease-in-out 0.2s;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cardd .profile-piccc img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.cardd .profile-piccc svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0px 0px;
  transform-origin: 45% 20%;
  transition: all 0.5s ease-in-out 0s;
}

.cardd:hover .profile-piccc {
  width: 200px;
  height: 200px;
  aspect-ratio: 1;
  top: 10px;
  left: -235px;
  border-radius: 50%;
  z-index: 3;
  border: 7px solid #1a3d6d;
  box-shadow: rgba(96, 75, 74, 0.4) 0px 12px 15px 0px;
  transition:
    all 0.5s ease-in-out,
    z-index 0.5s ease-in-out 0.1s;
}

.cardd:hover .profile-piccc:hover {
  transform: scale(1.3);
  border-radius: 0px;
}

.about-mee-yara {
  display: block;
  font-size: 0.8rem;
  color: white;
  margin-top: -6rem;
}

.namee-yara {
  display: block;
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
  padding-bottom: 6rem;
}

.contentt-yara {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 160px;
  margin-bottom: 28.5%;
}

@media (max-width: 768px) {
  .cards-roww,
  .cards-row,
  .cards-rowww {
    flex-direction: column;
    align-items: center;
  }
}
